/**
 * 员工信息列表视图
 */
Ext.define("app.view.attendance.CheckApply",{
	extend:'Ext.window.Window',
	alias:'widget.attendcheckapply',
	store:'attendance.CheckApplyStore',
	/*width:1000,
	height:600,*/
	//layout : 'fit',
	modal : true,
	//bodyPadding:5,
	//width:430,
	items:{
		xtype:'form',
		margin:5,
		defaultType:'displayfield',
		
		defaults:{		//表单默认属性
			//readonly:true,
			labelSeparator : ": ",
			labelWidth : 80,
			width : 320,
			allowBlank : false,	//表单不为空
			msgTarget : 'side',
			labelAlign:'right',	//标签右对齐
			blankText : '不能为空' ,
		},
		border:false,
		items:[

		       {name:'name',fieldLabel:'姓名'},
		       {name:'ename',fieldLabel:'英文名'},
		       {name:'department',fieldLabel:'部门'},
		       {name:'sid',fieldLabel:'工号'},
		       {name:'type',fieldLabel:'申请类型'},
		       {name:'ftime',fieldLabel:'开始时间'},
		       {name:'ltime',fieldLabel:'结束时间'},
		       {name:'flag',fieldLabel:'申请状态'},	 
		       
		       {xtype:'textfield',name:'msg',fieldLabel:'备注'},
		]
		},
		
	buttons:[
	         {
	        	 text:'通过',action:'pass'
	         },
	         {
	     		text:'拒绝',action:'refuse'
	     	 }
	],	
	
	
	 

	initComponent:function(){//初始化方法
		this.callParent(arguments);		
	}
});